\usepackage{/Users/ce/.texmf/tex/latex/commonstuff/mypackages/mytex}
\usepackage{/Users/ce/.texmf/tex/latex/commonstuff/mypackages/mypseudo}
\usepackage{cancel}
\AtBeginDocument{\RequirePackage{cleveref}}
\usepackage{natbib}
\makeatletter
\@ifpackageloaded{subfig}{}{\usepackage{subfig}}
\@ifpackageloaded{caption}{}{\usepackage{caption}}
\captionsetup[subfloat]{margin=0.5em}
\AtBeginDocument{%
  \renewcommand*\figurename{Figure}
  \renewcommand*\tablename{Table}
}
\AtBeginDocument{%
  \renewcommand*\listfigurename{List of Figures}
  \renewcommand*\listtablename{List of Tables}
}
\newcounter{pandoccrossref@subfigures@footnote@counter}
\newenvironment{pandoccrossrefsubfigures}{%
  \setcounter{pandoccrossref@subfigures@footnote@counter}{0}
  \begin{figure}\centering%
  \gdef\global@pandoccrossref@subfigures@footnotes{}%
  \DeclareRobustCommand{\footnote}[1]{\footnotemark%
  \stepcounter{pandoccrossref@subfigures@footnote@counter}%
  \ifx\global@pandoccrossref@subfigures@footnotes\empty%
  \gdef\global@pandoccrossref@subfigures@footnotes{{##1}}%
  \else%
  \g@addto@macro\global@pandoccrossref@subfigures@footnotes{, {##1}}%
  \fi}}%
  {\end{figure}%
  \addtocounter{footnote}{-\value{pandoccrossref@subfigures@footnote@counter}}
  \@for\f:=\global@pandoccrossref@subfigures@footnotes\do{\stepcounter{footnote}\footnotetext{\f}}%
  \gdef\global@pandoccrossref@subfigures@footnotes{}}
\@ifpackageloaded{float}{}{\usepackage{float}}
\floatstyle{ruled}
\@ifundefined{c@chapter}{\newfloat{codelisting}{h}{lop}}{\newfloat{codelisting}{h}{lop}[chapter]}
\floatname{codelisting}{Listing}
\newcommand*\listoflistings{\listof{codelisting}{List of Listings}}
\makeatother

\renewcommand{\d}{\mathrm{d}}
\newcommand{\T}[1]{\mathcal{T}_{\scriptscriptstyle #1}}
\renewcommand{\P}[1]{\mathcal{P}_{\scriptscriptstyle #1}}
